
pkill -9 qemu
KERNEL="-kernel $HOME/work/linux/linux-3.14.24/arch/arm64/boot/Image"
INITRD="-initrd $HOME/work/linux/image/test/root.img"
#APPEND='-append "init=a.out"'
#APPEND='--append console=ttyAMA0 '
QEMU=$HOME/work/workspace/qemu/qemu/aarch64-softmmu/qemu-system-aarch64
QEMU=$HOME/work/workspace/qemu/org/qemu/aarch64-softmmu/qemu-system-aarch64
# QEMU=qemu-system-aarch64

KERNEL="-kernel `pwd`/hello "
KERNEL="--kernel /home/slp/work/workspace/qemu/test/hello"
KERNEL="--kernel /home/slp/tmp/exc/v8mem_vz_permissions_check_ap_xn_4k_s111_r390__5_0.out.ELF"
KERNEL="--kernel /home/slp/work/workspace/arm-asm/test.elf"
INITRD=

$QEMU --machine virt -cpu cortex-a57 -machine type=virt  -m 512  -nographic -smp 1  $KERNEL $INITRD $APPEND 
#$QEMU --machine virt -cpu cortex-a57 -machine type=virt -m 512 -nographic -vnc 127.0.0.1:21 -smp 1 -serial stdio  $KERNEL $INITRD $APPEND
#$QEMU --machine virt -cpu cortex-a57 -machine type=virt -nographic -smp 1   $KERNEL $INITRD $APPEND
#qemu-system-aarch64 --machine virt -cpu cortex-a57 -machine type=virt -nographic -smp 1  $@ 
